#ifndef __MYSTDIO__
#define __MYSTDIO__

#define SIZE 1024
#define FLUSH_NOW 1
#define FLUSH_LINE 2
#define FLUSH_ALL 4


typedef struct IO_FILE{
    int fileno;
    //int in_pos;
    //char inbuffer[SIZE];
    int out_pos;
    char outbuffer[SIZE];
    int flag;
}_FILE;

_FILE* _fopen(const char* filename,const char* mode);
int _fwrite(const char* s,int len,_FILE* fp);
void _fclose(_FILE* fp);


#endif
